<%-- 
    Document   : adminGhostForm
    Created on : 23.11.2012, 14:59:08
    Author     : Siliarus
--%>

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<fmt:bundle basename="StripesResources" /> 

<s:errors/>

<fmt:message key='admin.ghostName' var="name"/>
<fmt:message key='admin.ghostDescription' var="description"/>
<fmt:message key='admin.ghostLevel' var="lvl"/>
<fmt:message key='admin.abilityType' var="ghostType"/>
<fmt:message key="admin.ghostAbility" var="ability"/>
<fmt:message key="admin.ghostLastHaunted" var="lastHaunted"/>
<table style="width:fit-content">
    <tr>
        <th><s:label for="b1" name="${name}"/></th>
        <td><s:text id="b1" name="ghost.name"/>
        </td>
    </tr>
    <tr>
        <th><s:label for="b2" name="${description}"/></th>
        <td><s:text id="b2" name="ghost.description"/>
        </td>
    </tr>
    <tr>
        <th><s:label for="b3" name="${lvl}"/></th>
        <td>
        <s:select id="b3" name="ghost.lvl">
                <s:option value="1" selected="selected">1</s:option>
                <s:option value="2">2</s:option>
                <s:option value="3">3</s:option>
                <s:option value="4">4</s:option>
                <s:option value="5">5</s:option>
                <s:option value="6">6</s:option>
            </s:select>
        </td>
    </tr>
    <tr>
        <th><s:label for="b4" name="${ghostType}"/></th>
        <td>
            <s:select id="b4" name="ghost.abilityType">
                <s:option value="AirElement" selected="selected"><fmt:message key='admin.abilityType.air'/></s:option>
                <s:option value="FireElement"><fmt:message key='admin.abilityType.fire'/></s:option>
                <s:option value="WaterElement"><fmt:message key='admin.abilityType.water'/></s:option>
                <s:option value="EarthElement"><fmt:message key='admin.abilityType.earth'/></s:option>
            </s:select>
        </td>
    </tr>
</table>